package lambda;

import lambda.interfaces.Converter;

/**
 * lambda表达式中访问实例对象的属性，可以进行读写属性
 *
 * @author kxd
 */
public class LambdaConverter {
    static int outerStaticNUm;
    int outerNum;
    void testScopes() {
        Converter<Integer, String> stringConverter = (from) -> {
            outerNum = 23;
            return String.valueOf(from);
        };
    }
}
